{include file="public/head"}
<style>
    .m-cell {
        background-color: #FFF;
        position: relative;
        z-index: 1;
        margin-bottom: .35rem;
        height: 3rem;
        line-height: 3rem;
    }
</style>
<body style="background:#eee">

<header class="aui-header-default aui-header-fixed aui-header-bg">
    <a href="{:url('User/Feedback')}" class="aui-header-item">
        <i class="aui-icon aui-icon-back-white"></i>
    </a>
    <div class="aui-header-center aui-header-center-clear">
        <div class="aui-header-center-logo">
            <div class="aui-car-white-Typeface" style="color:black;font-weight: bold;">反馈详情</div>
        </div>
    </div>
    <a href="#" class="aui-header-item-icon"   style="min-width:0">
        <!--<i class="aui-icon aui-icon-search"></i>-->
    </a>
</header>


<section class="aui-myOrder-content">
    <div class="aui-Address-box">
        <p>
            <input class="aui-Address-box-input" type="text"value="反馈时间： {$FeedbackInfo.add_time|date='Y-m-d H:i:s',###}" readonly style="margin-bottom: 0">
        </p>
        <p>
            <textarea class="aui-Address-box-text" rows="10" readonly>{$FeedbackInfo.content}</textarea>
        </p>

        {if condition="$FeedbackInfo.status eq 1"}
        <p>
            <input class="aui-Address-box-input" type="text"value="回复时间：{$FeedbackInfo.back_time|date='Y-m-d H:i:s',###}" readonly style="margin-bottom: 0;margin-top: 8px" >
        </p>
        <p>
            <textarea class="aui-Address-box-text" rows="10" readonly>{$FeedbackInfo.back_content}</textarea>
        </p>
        {/if}
    </div>
    {if condition="$FeedbackInfo.status eq 0"}
    <div class="aui-out">
        <a href="javascript:" class="red-color" style="color:#fff" id="del">删除反馈</a>
    </div>
    {/if}
</section>


<script type="text/javascript" src="__STATIC__/User/js/jquery.min.js"></script>
<script>
    $('#del').on('click',function () {
        var id = "{$FeedbackInfo.id}";
        if(confirm('确定删除吗？')){
            $.ajax({
                type:"POST",
                url:"{:url('User/FeedbackDel')}",
                data:{
                    id:id
                },
                dataType:"json",
                success:function(data){
                    alert(data.message);
                    if(data.status == 1){
                        window.location.href="{:url('User/Feedback')}";
                    }
                }
            })
        }
    })
</script>

</body>
</html>